*{
    padding:0;
    margin:0;
}
html{
    height:100%
}
body{
    background:url(../img/appale.png) no-repeat center, linear-gradient(to  bottom,#FAFADC,#81D741);
    background-size:contain;
    margin-top:20px;
}
header{
    display:block;
    margin:0 auto;
    width:100%;
    text-align:center;
}
.inf{
    margin: 0 auto;
    width: 100%;
}
header h1{
    font-family:Arial;
    font-size:30px;
    font-weight:bold;
    margin:0 auto;
}
header #newgamebutton{
    display:inline-block;
    padding: 7px;
    width:100px;
    background: linear-gradient(to bottom , #2D3639 , #A8A8A8 , #2D3639);
    font-family:Arial;
    font-size:25px;
    color:#FFF;
    border-radius:10px;
    text-decoration: none;
}

header #newgamebutton:hover{
    background: linear-gradient(to bottom , #A8A8A8 , #2D3639 , #A8A8A8);
    color: #BBE88B;
}
header p{
    font-family:Arial;
    font-size:25px;
    margin:20px auto;
    display:inline-block;

    padding: 7px;
    width:140px;
    background: linear-gradient(to bottom , #2D3639 , #A8A8A8 , #2D3639);
    font-family:Arial;
    color:#FFF;
    border-radius:10px;
    text-decoration: none;
}
header p:hover{
    background: linear-gradient(to bottom , #A8A8A8 , #2D3639 , #A8A8A8);
    color: #BBE88B;
}
#score{
    width:40px;
    line-height:25px;
}
#grid-container{
    width:460px;
    height:460px;
    padding:20px;
    margin:20px auto;

    border-radius:10px;
    position:relative;
    box-shadow:0 0 20px #000;
}
.grid-cell{
    width:100px;
    height:100px;
    border-radius:6px;
    background-color:#ccc0b3;
    position:absolute;
}
.number-cell{
    font-family: Arial;
    font-weight: bold;
    font-size: 60px;
    line-height: 100px;
    text-align: center;
    position: absolute;
    border-radius: 10px;
    box-shadow: 0 0 6px #333333 ;
}
.rotaeR{
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
    transition:transform 1s;
}
.rules{
    position:absolute;
    right:236px;
    top:334px;
    width:250px;
    height:400px;
    background: linear-gradient(to left bottom , #60B54E, #B59B68, #60B54E);
    border-radius:20px;
    box-shadow: 4px 4px 20px #333333;
    padding: 10px;
    font: 30px/1.5 "STXingkai",sans-serif;
}
.logo-image{
    width:400px;
    height: 400px;
    position: absolute;
    left:112px;
    top:330px;
}
.logo-image img{
    width:400px;
    height:400px;
}
.fail{
    z-index:112;

    margin:20px auto;
    position:absolute;
    top: 30%;
    left: 44%;
    font-size:40px;
    line-height: 40px;
    font-weight:bold;
    text-align:center;
    color: #FFF;
    font-family: '微软雅黑 Light';
}
.mask{
    height: 500px;
    width: 100%;
    top: 17%;
    margin: 0 auto;
    background-color: black;
    opacity: 0.5;
    display: none;
    position: absolute;
    z-index: 100;
    border-radius: 10px;
}
.success{
    z-index:112;
    display: none;
    position:absolute;
    margin:20px auto;
    top: 30%;
    left: 44%;
    font-size:40px;
    font-weight:bold;
    line-height: 40px;
    text-align:center;
    color: #FFF;
    font-family: '微软雅黑 Light';
}
.score-rotate{
    -webkit-transition: transform 0.5s ease-in;
    -moz-transition: transform 0.5s ease-in;
    -ms-transition: transform 0.5s ease-in;
    -o-transition: transform 0.5s ease-in;
    transition: transform 0.5s ease-in;
    -webkit-transform: rotateX(360deg);
    -moz-transform: rotateX(360deg);
    -ms-transform: rotateX(360deg);
    -o-transform: rotateX(360deg);
    transform: rotateX(360deg);
}